<script>
import SonCom from "@/components/sonCom.vue";
import SonCom1 from "@/components/sonCom1.vue";

export default {
  name: "fatherPage",
  components: {SonCom1, SonCom},
  data() {
    return {
      msg: "hello vue",
      arr: 1
    }
  },
  methods: {
    getSon1(data) {
      console.log('测试1'+data)
    }
  }
}
</script>

<template>
  <div>
    <son-com :type1="msg"></son-com>
    <son-com :type2="arr" :type1="'你好'"></son-com>
    <son-com1 @getSon="getSon1"></son-com1>
  </div>
</template>

<style scoped lang="less">

</style>